package com.demo.web;

import javax.validation.Valid;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baidu.unbiz.fluentvalidator.annotation.FluentValid;
import com.demo.bo.DemoObject;



@Controller
@RequestMapping(value = "/demo")
public class DemoController {



	@RequestMapping(value = "/say.do",method = RequestMethod.POST)
	@ResponseBody
	public String sayHello(@Valid @RequestBody DemoObject demo) {
		return "hello";
	}
}
